package designMode.iteratorPattern;

/**
 * @author LIBOFEI
 * @ClassName Iterator
 * @Description
 * @date 2020/6/26 16:29
 * @Version 1.0
 **/
public interface Iterator {

    /**
     * 是否有下一个元素
     * @author LIBOFEI
     * @date 16:29 2020/6/26
     * @return boolean
     * @Version  1.0
    **/
    boolean hasNext();


    /** *
     * 返回下一个元素
     * @author LIBOFEI
     * @date 16:30 2020/6/26
     * @return java.lang.Object
     * @Version  1.0
    **/
    Object next();

    /** *
     * 删除元素
     * @author LIBOFEI
     * @date 16:59 2020/6/26
     * @Version  1.0
     **/
    void remove();
}
